package test.beanTest;

import bean.back.listpark.BackListparkBean;
import bean.back.listpark.BackListparkItem;
import org.junit.Test;

import java.util.ArrayList;
import java.util.List;

import static org.junit.Assert.assertEquals;

public class BackListparkBeanTest {

    @Test
    public void setCode() {
        BackListparkBean b =new BackListparkBean();
        b.setCode(1);
        assertEquals(1,b.getCode());
    }

    @Test
    public void setMessage() {
        BackListparkBean b =new BackListparkBean();
        b.setMessage("111");
        assertEquals("111",b.getMessage());
    }

    @Test
    public void setTotal() {
        BackListparkBean b =new BackListparkBean();
        b.setTotal(1);
        assertEquals(1,b.getTotal());
    }

    @Test
    public void setData() {
        BackListparkBean b =new BackListparkBean();
        List<BackListparkItem> t = new ArrayList<>();
        b.setData(t);
        assertEquals(b.getData(),b.getData());
    }

    @Test
    public void queryPark() {
        BackListparkBean b =new BackListparkBean();
        b.queryPark("admin_1#100#yhz");
    }
}